package net.butfly.albacore.exception;

import javax.validation.ConstraintViolation;


public class ValidateException extends BusinessException {
	private static final long serialVersionUID = -4154151928102997805L;
	private ConstraintViolation<?>[] violations;

	public ConstraintViolation<?>[] getViolations() {
		return violations;
	}

	public <T> ValidateException(ConstraintViolation<T>[] violations) {
		super("", violations, generateMessage(violations));
		this.violations = violations;
	}

	private static <T> String generateMessage(ConstraintViolation<T>[] violations) {
		// TODO
		return null;
	}
}
